﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Deom
{
    class Program
    {
        static void Main(string[] args)
        {
            mian();
            zhen();
            max();
        }

        public static void mian()
        {
            Console.WriteLine("请输入圆的半径");
            double r = double.Parse(Console.ReadLine());
            double π = 3.14;
            double s = (r * r) * π;
            Console.WriteLine("面积{0}", s);
            Console.ReadLine();
        }
        public static void zhen() 
        {
            Console.WriteLine("请用户输入一个四位整数");
            int r = int.Parse(Console.ReadLine());
            int a = r/1000;
            int b = r / 100%10;
            int c = r % 1000 % 100/10;
            int d = r % 1000 % 100%10;
            Console.WriteLine("千位是{0}",a);
            Console.WriteLine("百位是{0}", b);
            Console.WriteLine("十位是{0}", c);
            Console.WriteLine("个位是{0}", d);
            Console.ReadLine();
        }
        public static void max()
        {
            int a, b, c;
            Console.WriteLine("请输入第一个数");
            a = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数");
            b = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第三个数");
            c = int.Parse(Console.ReadLine());

            if (a > b)
            {
                if (a > c)
                    Console.WriteLine("最大的值为："+a);
                else {
                    Console.WriteLine("最大的值为：" + c);
                }
            }
            else
            {
                if (b > c) {
                    Console.WriteLine("最大的值为：" + b);
                }
                else {
                    Console.WriteLine("最大的值为：" + c);
                }
            }
        }
    } 
}
